package club.mzywucai.blog.air_portal.pojo.domain;

import lombok.Data;

/**
 * @author mzywucai
 * @Description
 * @date 2019/6/3
 */
@Data
public class FileParam {
    private String fileName = "";
    private String newName = "";
    private String suffix = "";
    private String fileURL = "";

    // xxx/yyy/zzz/xxx.zip --> /xxx/yyy/zzz/xxx.zip
    private String fileURI = "/";
    private String path = "";

    private String fileSize = null;
    private String fileType = null;
    private String filePass = null;

    private int fileTimes = 10;

    public void setFileTimes(int fileTimes) {
        if (fileTimes < 1) {
            this.fileTimes = 1;
        } else {
            this.fileTimes = fileTimes;
        }
    }
}
